﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebMvc.App.Models.Entity.Common
{
    public class sms_app:NFinal.Struct
    {
		public System.Int64 id {get;set;}
		/// <summary>
        /// 名称
        /// </summary>
		public System.String name {get;set;}
		/// <summary>
        /// App ID
        /// </summary>
		public System.String app_id {get;set;}
		/// <summary>
        /// KEY
        /// </summary>
		public System.String app_secret {get;set;}
		public System.String access_token {get;set;}
		public System.Int64? expire {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"id\":");
					tw.Write(id.ToString());
					tw.Write(",");
					tw.Write("\"name\":");
					tw.Write("\"");
					tw.Write(name==null?"null":name);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"app_id\":");
					tw.Write("\"");
					tw.Write(app_id==null?"null":app_id);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"app_secret\":");
					tw.Write("\"");
					tw.Write(app_secret==null?"null":app_secret);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"access_token\":");
					tw.Write("\"");
					tw.Write(access_token==null?"null":access_token);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"expire\":");
					tw.Write(expire==null?"null" : expire.ToString());
			tw.Write("}");
		}
		#endregion
    }
}
